<?php
/**
 * User:于小涛
 * Date:2020/2/17
 * Time:13:55
 */
use think\facade\Route;
Route::group(function () {
    Route::group('user',function () {
        Route::rule('login', 'user.User/login');
    });
    Route::group('system',function () {
        Route::rule('getChannelList', 'system.Channel/getChannelList');
        Route::rule('getTuiGuangAdminList', 'system.Admin/getTuiGuangAdminList');
        Route::rule('getChuangYeAdminList', 'system.Admin/getChuangYeAdminList');
    });
    Route::group('promotion',function () {
        Route::rule('addPromotionRecord', 'promotion.PromotionRecord/addPromotionRecord');
        Route::rule('addValidRecord', 'promotion.PromotionRecord/addPromotionValidRecord');
        Route::rule('getPromotionRecordList', 'promotion.PromotionRecord/getList');

        Route::rule('getPromotionStatisticData', 'promotion.Statistic/getPromotionStatisticData');
        Route::rule('getValidStatisticData', 'promotion.Statistic/getValidStatisticData');
    });
});